package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 房间 登陆用户关联中间表
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-16
 */
@TableName("home_user")
public class HomeUser extends Model<HomeUser> {

    private static final long serialVersionUID = 1L;

	private Long id;
	@TableField("home_id")
	private Long homeId;
	@TableField("user_id")
	private Long userId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHomeId() {
		return homeId;
	}

	public void setHomeId(Long homeId) {
		this.homeId = homeId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "HomeUser{" +
			"id=" + id +
			", homeId=" + homeId +
			", userId=" + userId +
			"}";
	}
}
